package com.bank.mapper;

import com.bank.dto.UserUpdateInfoDTO;
import com.bank.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;

@Mapper
public interface UserMapper {

    /**
     * 根据用户名查询员工
     * @param username
     * @return
     */
//    @Select("select * from users where username = #{username}")
    User getByUsername(String username);

    void insert(User user);

    void update(UserUpdateInfoDTO userUpdateInfoDTO);

    User getById(Long id);

    Integer gteMaxAccountNumber(Long userId);
}
